<?php
class Group extends Doctrine_Record
{
	public function setTableDefinition()
	{
		$this->setTableName('person.groups');
		
		$this->hasColumn('name', 'string', 30);
		$this->hasColumn('description', 'string', 30);
	}
	
	public function setUp()
	{
		$this->hasMany('User as users', array(
                'local'=>'group_id',
                'foreign'=>'user_id',
                'refClass'=>'UserGroup'
		));
	}
}
?>